package com.lds.erp.configuration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * description:此为配置类，读取properties配置属性
 * <p>
 * 组件配置的属性勿放在此类进行管理，此类只管理业务属性
 * </p>
 * saras_xu@163.com 2017-03-10 10:31 创建
 */
@Configuration
public class ConfigProperty {
	/**
	 * 系统所有者
	 */
	@Value("${app.owner}")
	private String owner;

	@Value("${app.developer.mode}")
	private Boolean developerMode;

	// **********七牛配置***********/
	@Value("${qiniu.bucket}")
	private String qiniuBucket;

	@Value("${qiniu.access.key}")
	private String qiniuAccessKey;

	@Value("${qiniu.secret.key}")
	private String qiniuSecretKey;
	
    @Value("${qiniu.image.domain}")
    private String qiniuImageDomain;
	// **********七牛配置***********/

	// **********签名key***********/
	@Value("${app.sign.key}")
	private String signKey;

	//微信小程序token
	@Value("${weixin.program.token}")
	private String weixinToken;

	//微信小程序 appId
	@Value("${weixin.program.appid}")
	private String weiXinAppId;

	//微信小程序 appSecret
	@Value("${weixin.program.secret}")
	private String weiXinSecret;

	//微信小程序 登录授权
	@Value("${weixin.program.auth.code}")
	private String weiXinAuthCode;


	public String getWeiXinAuthCode() {
		return weiXinAuthCode;
	}

	public String getWeiXinAppId() {
		return weiXinAppId;
	}

	public String getWeiXinSecret() {
		return weiXinSecret;
	}

	public String getOwner() {
		return owner;
	}

	public Boolean getDeveloperMode() {
		return developerMode == null ? false : developerMode;
	}

	public String getQiniuBucket() {
		return qiniuBucket;
	}

	public String getQiniuAccessKey() {
		return qiniuAccessKey;
	}

	public String getQiniuSecretKey() {
		return qiniuSecretKey;
	}

	public String getSignKey() {
		return signKey;
	}

	public String getWeixinToken() {
		return weixinToken;
	}

	public String getQiniuImageDomain() {
		return qiniuImageDomain;
	}


}
